//
//  WalletInfoCell.m
//  NtoccShipper
//
//  Created by mac on 2020/10/15.
//  Copyright © 2020 zhuchongjin. All rights reserved.
//

#import "WalletInfoCell.h"
@interface WalletInfoCell()
@property (strong, nonatomic) CJLabel *labBankCertName;
@property (strong, nonatomic) CJLabel *labBranchName;
@property (strong, nonatomic) CJLabel *labBankCardNo;
@property (strong, nonatomic) CJLabel *labBranchNo;
@property (nonatomic,strong) UIView *viewBranchNo;
@property (nonatomic,strong) UIView *viewLine;
@end
@implementation WalletInfoCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)sewtCellInfoWithModel:(WalletInfoModel *)model{
    
    if (model) {
        self.labBankCertName.text = model.bankCertName;
        self.labBranchName.text = model.branchName;
        self.labBankCardNo.text = model.bankCardNo;

        if ([CJControl getIsEmpty:model.branchNo]) {
            self.viewBranchNo.hidden = YES;
            self.viewLine.hidden = YES;
        }else{
            self.viewBranchNo.hidden = NO;
            self.viewLine.hidden = NO;
            self.labBranchNo.text = model.branchNo;
        }
    }
}
@end
